/**
 *
 * @param type 元素类型
 * @param config 配置对象
 * @param children 儿子或儿子们
 */
function createElement(type, config, ...children) {
  if (config) {
    delete config.__source;
    delete config.__self;
    //↑ 这俩源码里用到了 我们暂时用不到 先删除
  }

  const props = {...config};
  props.children = children;

  return {
    type,
    props
  }
}

const React = {createElement}

export default React;
